package com.wskh.edu.client.impl;

import com.wskh.commonUtil.R;
import com.wskh.edu.client.OssClient;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

// 熔断机制 RPC出错时（调用服务宕机时）调用
@Component
public class OssClientImpl implements OssClient {
    @Override
    public R uploadAvatar(MultipartFile file) {
        return R.error().message("上传图片出错了");
    }

    @Override
    public R testOss(String id) {
        return R.error().message("测试出错了");
    }

    @Override
    public R deleteVideoById(String id) {
        return R.error().message("删除视频出错了");
    }
}
